Repository navigation
Conversation
A Cannot Claim from a control function in the address table was ignored, so it stayed online at its old address. It now goes offline the same way as one that stops answering requests for address claim (ISO 11783-5:2019 4.5.3). Fixes Open-Agriculture#955 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #955, reported by @sujandumaru.
A Cannot Claim (an address claim from the null address, 254) from a control function we already tracked was ignored. The control function stayed online at its old address, and the application got no event.
ISO 11783-5:2019 4.5.3: "A CF that has previously communicated with another CF unable to claim a particular address shall be capable of detecting when that other CF has been "disabled" by monitoring its cannot-claim-source-address message as well as the address-claimed message of the higher-priority CF that impeded the claim."
The winner's claim already handled the second case. The new
process_cannot_claim()handles the first:Tests:
CannotClaimTakesAKnownControlFunctionOfflinechecks the Offline event, and that the same CF comes back online when it claims again.CannotClaimTakesAPartnerOfflineCannotClaimFromAnUnknownNameChangesNothing🤖 Generated with Claude Code